<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="css/webbase.css" th:href="@{/css/pages-cart.css}" />
</head>
<body>

<div th:insert="~{dir1/head :: myhead}"></div>
<div th:replace="~{dir1/head :: myhead}"></div>
<div th:include="~{dir1/head :: myhead}"></div>
<h1 th:if="${is}">我是is，我等于true</h1>

<!--条件不成立输出-->
<h1 th:unless="${is}">我是is，我等于false</h1>

<!--选择语句-->
<div th:switch="${menu}">
<h3 th:case="'admin2'">admin</h3>
<h3 th:case="${manager}">manager</h3>
</div>
</body>
</html>